//
//  ExcResultView.m
//  PlayCatchGame
//
//  Created by 流言 on 2018/2/26.
//  Copyright © 2018年 清正. All rights reserved.
//

#import "ExcResultView.h"

@interface ExcResultView()

@property (nonatomic, copy)ButtonBlock buttonBlock;

@end

@implementation ExcResultView

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (IBAction)buttonClick:(UIButton *)sender {
    if (self.buttonBlock) {
        self.buttonBlock(sender);
    }
}


- (void)didButtonClickBlock:(ButtonBlock)newBlock {
    self.buttonBlock = newBlock;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
